package com.chinaunicom.customtag;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2021/11/23 20:48
 * Description:
 */
public class CustomTagMain {

	public static void main(String[] args) {
		// 创建 ApplicationContext 容器
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("beans-custom.xml");

		Work work = (Work) applicationContext.getBean("testBean");

		System.out.println(work.toString());


		Work test = (Work) applicationContext.getBean("work");

		System.out.println(test.toString());
	}
}
